import { RMIProxyObject } from "../../Engine/RMI/RMIProxyObject";
import { IPanicBuyPrx } from "./IPanicBuyPrx";
import { AMI_IPanicBuy_buyItem } from "./AMI_IPanicBuy_buyItem";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { Outgoing } from "../../Engine/RMI/Outgoing";
import { AMI_IPanicBuy_closePanicBuyPanel } from "./AMI_IPanicBuy_closePanicBuyPanel";
import { AMI_IPanicBuy_getPanicBuyConfig } from "./AMI_IPanicBuy_getPanicBuyConfig";
type int = number;
//class IPanicBuyPrxHelper
    
    export  class IPanicBuyPrxHelper extends RMIProxyObject implements IPanicBuyPrx
    {
        constructor()
        {
            
            super();name = "IPanicBuy";
            return;
        }

        public buyItem_async(arg1: AMI_IPanicBuy_buyItem, arg2: int, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("buyItem");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public closePanicBuyPanel_async(arg1: AMI_IPanicBuy_closePanicBuyPanel): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("closePanicBuyPanel");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public getPanicBuyConfig_async(arg1: AMI_IPanicBuy_getPanicBuyConfig): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("getPanicBuyConfig");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public static /* const */NAME: string="Message.Game.IPanicBuy";
    }
